f = oda ~ oda_lag + p_polity2 + gdppc + pop + conflict + factor(year)*factor(agency)
f1 = update(f, '.~.+alliance*independence')
f2 = update(f, '.~.+trade*independence')
f3 = update(f, '.~.+infant_mortality*independence')

mod1 = lm(f1, dat)
mod2 = lm(f2, dat)
mod3 = lm(f3, dat)

agency_trends = list(mod1, mod2, mod3)
se = lapply(agency_trends, function(i) sqrt(diag(sandwich(i))))

print(screenreg(agency_trends, omit.coef='factor', digits=3, override.se=se))
